<script>
    window.onload = function () {
//        $("#div_print").html(data);
//        $("#div_print").show();
        var div_print=document.getElementById("div_print");
        printdiv(div_print);
    };
    function printdiv(printpage)
    {
        var newstr = printpage.innerHTML;
        var oldstr = document.body.innerHTML;
        document.body.innerHTML =newstr;
        window.print();
        document.body.innerHTML=oldstr;
        location.href="{php echo $this->createWebUrl('orders',array('op' => 'index'))}&region_id={$region_id}&key_word={$key_word}&day={$day}&status={$status}&goods_status={$goods_status}&goods_express={$goods_express}&from_member={$from_member}&cashier={$cashier}&goods_remark={$goods_remark}";
        return false;
    }
</script>
<div id="div_print">
    {$print_str}
</div>